public class Reflection_demo1 {
    public static void main(String[] args) throws ClassNotFoundException {
        // 一、 获取反射的类
        // 1. 类.class
        Class c1 = Student.class;
        System.out.println(c1);
        // 2. Class.forName("全类名")
        Class c2 = Class.forName("Student");
        System.out.println(c2);
        // 3. 对象.getClass()
        Student s = new Student();
        Class c3 = s.getClass();
        System.out.println(c3);

        System.out.println(c1 == c2);
        System.out.println(c1 == c3);
    }
}
